package gov.child.service;

import gov.child.entities.vo.Department;
import gov.child.entities.vo.EnterpriseDeclareForm;
import gov.child.entities.vo.Page;
import gov.child.entities.vo.User;

import java.util.List;

/**
 * @author fzh
 * @since 2017/9/14
 */
public interface EnterpriseDeclareFormService extends Pageable {
    EnterpriseDeclareForm findById(Integer id);

    EnterpriseDeclareForm findByUnicode(String code);

    List findByUser(User user, Page page);

    List findByDepartment(Department department, Page page);

    List findByDepartmentAndStatus(Department department, byte status, Page page);

    boolean save(EnterpriseDeclareForm form);

    boolean delete(EnterpriseDeclareForm form);

    boolean update(EnterpriseDeclareForm form);
}
